package org.jl.demo.authority.model.po;

import lombok.Data;
import jakarta.persistence.*;

/**
 * 操作Po
 */
@Data
@Entity
@Table(name = "z_operation", indexes = {
        @Index(name = "idx_operation_code", columnList = "operation_code"),
        @Index(name = "idx_operation_name", columnList = "operation_name")
})
public class Operation {
    /**
     * 操作ID
     */
    @Id
    @Column(name = "id", nullable = false, unique = true)
    private Integer id;
    /**
     * 操作编码
     */
    @Column(name = "operation_code", nullable = false, length = 8)
    private String operationCode;
    /**
     * 操作名称
     */
    @Column(name = "operation_name", nullable = false, length = 32)
    private String operationName;
}